package com.example.competionmanagebackend.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.example.competionmanagebackend.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Rui
* @description 针对表【users】的数据库操作Mapper
* @createDate 2025-02-20 00:49:24
* @Entity com.example.competionmanagebackend.entity.Users
*/
public interface UsersMapper extends BaseMapper<Users> {
    List<Users> selectByUserNameAndPassword(@Param("userName") String userName, @Param("password") String password);
    // 新增用户
    int insertUser(Users user);

    // 编辑用户
    int updateUser(Users user);

    // 删除用户
    int deleteUserById(Integer id);
}




